#pragma once
#include "SqlMaster.h"


//using namespace cliext;
using namespace System;

ref class ConvertCSV
{
public:
	ConvertCSV(void);

	int CsvToSql(System::String^ path_csv, String ^ tableName, unsigned int row_skip, Char separator);
	array <String^>^ SplitStr(String^ str, Char spliter);
	void  Setup(array<String^>^ fieldsName);

private:
	
	SqlMaster^ G_Master;


	String^ CreateSqlQuery(array<String^>^ fields);
	
	String^ G_tableName; 
	array<String^>^ G_fieldsName; 
};
